package cn.exrick.xboot.base.service

import cn.exrick.xboot.base.entity.Business
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import com.baomidou.mybatisplus.extension.service.IService

/**
 * 行业接口
 * @author Fei
 */
interface IBusinessService : IService<Business?> {

    /**
     * 添加或者更新行业
     */
    fun createOrUpdateBusiness(business: Business): Result<Any?>?


    /**
     * 移除行业
     */
    fun removeBusiness(ids: Array<out String>): Result<Any?>?


    /**
     * 获取行业列表
     */
    fun getBusinessList(pageVo: PageVo): Result<MutableMap<String, Any?>>?

    /**
     * 获取行业名称
     */
    fun getBusinessNameById(id: String?): String?
}